<include file="Admin@Public/header" /> 

<div class="col-sm-10 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <ol class="breadcrumb">
      <li>所有用户</li>
      <li>网站用户</li>
      <li class="active">添加</li>
    </ol>
     

<form  class="form-horizontal" role="form" action="__URL__/save" >
  <input type="hidden" name="inputId" value="0" >
  <div class="form-group">
    <label for="inputProfessional" class="col-sm-2 control-label">用户角色</label>
    <div class="col-sm-4">
     <select name="inputRole" class="form-control" id="inputProfessional">
        <volist name="roles" id="role">
          <option value="{$role.id}">{$role.name}</option>
        </volist>  
      </select>
    </div>
  </div> 
  <div class="form-group">
    <label for="inputName" class="col-sm-2 control-label">用户名</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputName" name="inputName" placeholder="请输入用户名" datatype="*2-12" errormsg="<i class='icon-warning-sign'></i> 用户名在2~12位之间"  nullmsg="<i class='icon-warning-sign'></i> 请填写用户名！" ajaxurl="__URL__/validNickname">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">用户名至少2个字符,最多12个字符<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail" class="col-sm-2 control-label">邮箱</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputEmail" name="inputEmail" placeholder="请输入邮箱" value="{$parentMenuObj.model}" datatype="e" errormsg="<i class='icon-warning-sign'></i> 必须是合法的邮箱格式"  nullmsg="<i class='icon-warning-sign'></i> 请填写邮箱！" ajaxurl="__URL__/validEmail"> 
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">必须是合法的邮箱格式<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword" class="col-sm-2 control-label">密码</label>
    <div class="col-sm-4">
      <input type="password" class="form-control" id="inputPassword" name="inputPassword" placeholder="请输入密码"  datatype="*6-18" errormsg="<i class='icon-warning-sign'></i> 密码至少6个字符,最多18个字符！"  nullmsg="<i class='icon-warning-sign'></i> 请填写密码！">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">密码至少6个字符,最多18个字符！<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputRePassword" class="col-sm-2 control-label">重复密码</label>
    <div class="col-sm-4">
      <input type="password" class="form-control" id="inputRePassword" name="inputRePassword" placeholder="请确认密码" value="{$parentMenuObj.action}" datatype="*" recheck="inputPassword" errormsg="<i class='icon-warning-sign'></i> 两次输入的密码不一致"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">请确认密码<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputStatus" class="col-sm-2 control-label">是否显示</label>
    <div class="col-sm-4">
      <input type="checkbox" name="inputStatus" value="1" id="inputStatus" checked>显示
    </div>
  </div>
  
  <div class="form-group">
    <label for="inputStatus" class="col-sm-2 control-label"> </label>
    <div class="col-sm-4">
      <input type="button" class="btn btn-primary" value="添加" id="btn_sub"/>
       <a href="__URL__/index" class="btn btn-default" >返回</a>
  </div>
</div>
</form> 
            
            
</div>

<include file="Admin@Public/script_form" /> 
<include file="Admin@Public/footer" /> 
   
